/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package controller;

import javax.swing.table.DefaultTableModel;
import model.Tabelle;

/**
 *
 * @author Max
 */
public class TabellenLoader {
    
    String filePath;
    
    public TabellenLoader(String filepath) {
        this.filePath = filepath;
    }
    
    public DefaultTableModel  getDefaultTableModel() {
        Tabelle tabelle = new Tabelle(new CSVLoader(filePath).getListe());
        DefaultTableModel defaultTableModel = tabelle.getDefaultTableModel();
        return defaultTableModel;
    }
    
}
